<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>个人信息页面</title>
    <link rel="stylesheet" th:href="@{/styles.css}" />
</head>
<form method="POST" th:action="@{/personalInformation}" th:object="${student}">

    <div th:if="${#fields.hasErrors()}">
        <span class="validationError">
        Please correct the problems below and resubmit.
        </span>
    </div>

    <h3><--请输入你的个人信息--></h3>
    <label for="name">姓名: </label>
    <input type="text" th:field="*{name}"/>
    <span class="validationError"
          th:if="${#fields.hasErrors('name')}"
          th:errors="*{name}">Name Error</span>
    <br/>

    <label for="studentNumber">学号: </label>
    <input type="text" th:field="*{studentNumber}"/>
    <span class="validationError"
          th:if="${#fields.hasErrors('studentNumber')}"
          th:errors="*{studentNumber}">Student Number Error</span>
    <br/>

    <label for="grade">年级: </label>
    <input type="text" th:field="*{grade}"/>
    <span class="validationError"
          th:if="${#fields.hasErrors('grade')}"
          th:errors="*{grade}">Grade Error</span>
    <br/>

    <label for="major">专业: </label>
    <input type="text" th:field="*{major}"/>
    <span class="validationError"
          th:if="${#fields.hasErrors('major')}"
          th:errors="*{major}">Major Error</span>
    <br/>

    <label for="college">大学: </label>
    <input type="text" th:field="*{college}"/>
    <span class="validationError"
          th:if="${#fields.hasErrors('college')}"
          th:errors="*{college}">College Error</span>
    <br/>

    <input type="submit" value=" -->提交个人信息<-- "/>

</form>

</body>
</html>